﻿using System.Windows;

namespace AngelSix
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }
        //注意这里用的是Loaded事件，因为NavigationService里面使用了App.Current
        //如果在构造函数里面调用的话，还没初始化完成拿不到App.Current会报错
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            NavigationService.Instance.Navigate(ApplicationPage.Login);
        }
    }
}
